package com.cov.web.bean;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.util.List;

public class ChildrenBeanX implements Serializable {
    /**
     * name : 香港
     * today : {"confirm":2102,"confirmCuts":0,"isUpdated":true,"tip":"","wzz_add":0}
     * total : {"nowConfirm":235706,"confirm":272235,"dead":5136,"showRate":false,"heal":31393,"showHeal":true,"wzz":0,"provinceLocalConfirm":0}
     * children : [{"name":"地区待确认","today":{"confirm":2102,"confirmCuts":0,"isUpdated":true},"total":{"nowConfirm":235706,"confirm":272235,"dead":5136,"showRate":false,"heal":31393,"showHeal":true,"wzz":0,"provinceLocalConfirm":0}}]
     */

    private String name;
    private TodayBeanX today;
    private TotalBeanX total;
    private List<ChildrenBean> children;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public TodayBeanX getToday() {
        return today;
    }

    public void setToday(TodayBeanX today) {
        this.today = today;
    }

    public TotalBeanX getTotal() {
        return total;
    }

    public void setTotal(TotalBeanX total) {
        this.total = total;
    }

    public List<ChildrenBean> getChildren() {
        return children;
    }

    public void setChildren(List<ChildrenBean> children) {
        this.children = children;
    }

    public ChildrenBeanX() {
        super();
    }

    public ChildrenBeanX(String name, TodayBeanX today, TotalBeanX total, List<ChildrenBean> children) {
        this.name = name;
        this.today = today;
        this.total = total;
        this.children = children;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("name", getName())
                .append("today", getToday())
                .append("total", getTotal())
                .append("children", getChildren())
                .toString();
    }
}
